package im.domain;
import jade.content.Concept;
import jade.core.Location;

public class Context implements Concept{
	
	private Location nodeId;
	private double	caricoCpu;
	private Integer ramDisp;
	private Integer memStabDisp;
	private double bandaDisp;
	private Integer autonomiaResidua;
	
	public Context(){
		
	}
	
	public String toString(){
		String aut = (autonomiaResidua>10000)?"infinita":autonomiaResidua.toString();
		return "["+nodeId.getName()+"]"
			+"Autonomia: "+ aut+" h"
			+", CPU: "+caricoCpu
			+", RAM: "+ramDisp+" MB"
			+", MEM: "+memStabDisp+" MB"
			+", BANDA: "+bandaDisp+" Mbps";
	}
	public Location getNodeId() {
		return nodeId;
	}
	public void setNodeId(Location nodeId) {
		this.nodeId = nodeId;
	}
	public double getCaricoCpu() {
		return caricoCpu;
	}
	public void setCaricoCpu(double d) {
		this.caricoCpu = d;
	}
	public Integer getRamDisp() {
		return ramDisp;
	}
	public void setRamDisp(Integer aramDispmDisp) {
		this.ramDisp = aramDispmDisp;
	}
	public Integer getMemStabDisp() {
		return memStabDisp;
	}
	public void setMemStabDisp(Integer memStabDisp) {
		this.memStabDisp = memStabDisp;
	}
	public double getBandaDisp() {
		return bandaDisp;
	}
	public void setBandaDisp(double d) {
		this.bandaDisp = d;
	}
	public Integer getAutonomiaResidua() {
		return autonomiaResidua;
	}
	public void setAutonomiaResidua(Integer autonomiaResidua) {
		this.autonomiaResidua = autonomiaResidua;
	}
	
}
